const ProjectModel = require('../do/models/');
class ProjectService{
    async getProject(id){
        if(!id){
            return await ProjectModel.findAll();
        }
        return await ProjectModel.findOne({
            where:{
                id:id
            }
        })
    }
    async createProject(data){
        return await ProjectModel.create(data);
    }
}
module.exports = new ProjectService();